<!DOCTYPE html>
<html class="x-admin-sm">
{include file='public/header'}
<script src="/admin/xadmin/lib/layui/upload.js" charset="utf-8"></script>

<body>
    <div class="x-body">
        <form class="layui-form" lay-filter="formAjax">
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>投诉单号
                </label>
                <div class="layui-input-block">
                    <input type="text" name="complaint_id" id="complaint_id" placeholder="投诉单号" disabled required="required"
                        lay-verify="required" autocomplete="off" class="layui-input" value="" />
                </div>
            </div>
            
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <span class="x-red">*</span>审批动作
                </label>
                <div class="layui-input-block">
                    <input type="radio" name="action" value="APPROVE" title="同意" checked>
                    <input type="radio" name="action" value="REJECT" title="拒绝">
                </div>
            </div>

            <button id="submitData" class="layui-btn" lay-submit lay-filter="submitData" style="display: none;" />
        </form>
    </div>
    <script>
        let complaint_id = GetQueryString('complaint_id')
        $('#complaint_id').val(GetQueryString('complaint_id'));

        let params = {
            addUrl: '/admin/proposal/updateRefundStatus?complaint_id='+complaint_id,
            confirm:true
        }
        form_ajax(params)

    </script>
</body>

</html>